package com.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.entity.Car;
import com.entity.Orders;
import com.entity.view.CarView;
import com.entity.view.OrdersView;
import com.entity.vo.CarVO;
import com.entity.vo.OrdersVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface CarDao extends BaseMapper<Car> {
    List<CarVO> selectListVO(@Param("ew") Wrapper<Car> wrapper);

    CarVO selectVO(@Param("ew") Wrapper<Car> wrapper);

    List<CarView> selectListView(@Param("ew") Wrapper<Car> wrapper);

    List<CarView> selectListView(Pagination page, @Param("ew") Wrapper<Car> wrapper);

    CarView selectView(@Param("ew") Wrapper<Car> wrapper);


    List<Map<String, Object>> selectValue(@Param("params") Map<String, Object> params, @Param("ew") Wrapper<Car> wrapper);

    List<Map<String, Object>> selectTimeStatValue(@Param("params") Map<String, Object> params,@Param("ew") Wrapper<Car> wrapper);

    List<Map<String, Object>> selectGroup(@Param("params") Map<String, Object> params,@Param("ew") Wrapper<Car> wrapper);

}
